//
//  LSZEachAgencyManager.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/8/30.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZEachAgencyManager.h"

@implementation LSZEachAgencyManager
-(id)initWithEachAgency:(NSArray *)array
{
    self = [super init];
    if (self) {
        self.arrayData = [NSMutableArray array];
        NSMutableArray * mutrray = [[NSMutableArray alloc]init];
        for (NSDictionary * dic in array) {
            LSZEachAgencyMg * mg = [[LSZEachAgencyMg alloc]init];
            mg.id_id = NullStringjudgment(NSStr(dic[@"id"]));
            mg.leaf = NullStringjudgment(NSStr(dic[@"leaf"]));
            mg.name = NullStringjudgment(NSStr(dic[@"name"]));
            if ([[dic allKeys] containsObject:@"summary"]) {
                mg.summary = NullStringjudgment(NSStr(dic[@"summary"]));
            }
            [mutrray addObject:mg];
        }
        self.arrayData = mutrray;
    }
    return self;
}
@end
@implementation LSZEachAgencyMg
@end
